#include <iostream>
#include <math.h>
#include <set>


using namespace std;


int main()
{


    int finMes;
    int diaA = 0; //0 = lunes
    int res= 0;
    for (int anio = 0;anio <= 100 ; anio++)
    {
        for (int mes = 1; mes <= 12 ;mes ++  )
        {
            if (mes == 2)
            {
                if (anio % 4 == 0 and anio > 0) finMes = 29;
                else finMes = 28;
            }
            else if (mes == 9 or mes == 4 or mes == 6 or mes == 11) finMes = 30;
            else finMes = 31;

            for (int dia = 1;dia <= finMes ;dia++ )
            {
                if (diaA %  7 == 6 and anio >0 and dia ==1) res = res+1;
                diaA = diaA + 1;
            }
        }
    }
    cout << res <<endl;
    return 0;

}
